package com.wanji.gateway.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "protocol")
public class ProtocolConfig {

    @Value("${protocol.default:HTTP}")
    private String defaultProtocol;

    private Map<String, String> mapping;

    @Value("${protocol.sdk.path}")
    private String path;

    @Value("${protocol.sdk.scanInterval:60000}")
    private Integer scanInterval;
}
